.class public Lcom/xingbook/ui/an;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/ak;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/ui/an;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/an;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/ak;

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-static {v0}, Lcom/xingbook/ui/ak;->a(Lcom/xingbook/ui/ak;)Lcom/xingbook/ui/ad;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    iput-object v0, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget v0, p1, Landroid/os/Message;->arg1:I

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/ad;->setBackgroundColor(I)V

    iget v0, p1, Landroid/os/Message;->arg2:I

    add-int/lit16 v0, v0, 0x3e8

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v1, v3}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    goto :goto_0

    :pswitch_1
    invoke-static {v0}, Lcom/xingbook/ui/ak;->b(Lcom/xingbook/ui/ak;)Landroid/widget/ProgressBar;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setVisibility(I)V

    goto :goto_0

    :pswitch_2
    invoke-static {v0}, Lcom/xingbook/ui/ak;->b(Lcom/xingbook/ui/ak;)Landroid/widget/ProgressBar;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    goto :goto_0

    :pswitch_3
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/xingbook/ui/ak;->a(Lcom/xingbook/ui/ak;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_4
    invoke-static {v0}, Lcom/xingbook/ui/ak;->c(Lcom/xingbook/ui/ak;)V

    goto :goto_0

    :pswitch_5
    invoke-virtual {v0}, Lcom/xingbook/ui/ak;->a()V

    goto :goto_0

    :pswitch_6
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/xingbook/ui/ac;

    invoke-static {v0}, Lcom/xingbook/ui/ak;->d(Lcom/xingbook/ui/ak;)Lcom/xingbook/ui/ab;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/xingbook/ui/ab;->setChildVisibility(Lcom/xingbook/ui/ac;)V

    invoke-static {v0}, Lcom/xingbook/ui/ak;->d(Lcom/xingbook/ui/ak;)Lcom/xingbook/ui/ab;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/xingbook/ui/ab;->setVisibility(I)V

    goto :goto_0

    :pswitch_7
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    const/16 v2, 0x10

    invoke-static {v1, v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;I)J

    move-result-wide v1

    iget-object v3, v0, Lcom/xingbook/ui/ak;->g:Lcom/xingbook/ui/t;

    long-to-int v1, v1

    iput v1, v3, Lcom/xingbook/ui/t;->h:I

    iget-object v0, v0, Lcom/xingbook/ui/ak;->g:Lcom/xingbook/ui/t;

    invoke-virtual {v0}, Lcom/xingbook/ui/t;->invalidate()V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method
